package com.example.news_demo.mapper;

import com.example.news_demo.entity.Article;
import com.example.news_demo.entity.Content;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface ArticleMapper {

    public Article getOneById(int id);

    public List<Article> getArticleListByWord (String word);

    public List<Article> getArticleListByLike(String word);

    public List<Content> selectContent();

    public List<String> getWordsByCorrelation(long id);

    public List<Article> getArticleListByWordLimit3 (String word);
}
